package easy4j.framework.example.entity;

import org.easy4j.framework.core.orm.annotation.*;

import java.util.Date;

/**
 * @author: liuyong
 * @since 1.0
 */
@Table("user_group")
public class UserGroup {

    @Id
    @Column(insertable = false)
    private long id ;

    private int uid ;

    private String name ;

    private Date created ;

    @Column(ignore = true)
    private Date modified ;

    public UserGroup() {
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("UserGroup{");
        sb.append(super.toString());
        sb.append(", uid=").append(uid);
        sb.append(", created=").append(created);
        sb.append(", modified=").append(modified);
        sb.append('}');
        return sb.toString();
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }


    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getModified() {
        return modified;
    }

    public void setModified(Date modified) {
        this.modified = modified;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }
}
